package com.ruubypay.biz.utils.file;

import java.io.File;

/**
 * 路径工具类
 * @author chenhaiyang
 */
public class PathUtil {

    private static final String SEPARATE=":";
    /**
     * 获取classpath1
     * @return 返回 classpath1
     */
    public static String getClasspath(){
        String path = (String.valueOf(Thread.currentThread().getContextClassLoader().getResource(""))+"../../").replaceAll("file:/", "").replaceAll("%20", " ").trim();
        if(path.indexOf(SEPARATE) != 1){
            path = File.separator + path;
        }
        return path;
    }
}
